package cn.lanqiao.entity;

import java.util.ArrayList;
import java.util.List;

public class Pages<T> {
	//总页数
	private int totalPages;
	//当前页面
	private int indexPage;
	//总记录数
	private int totalData;
	//页面记录数
	private int pageSize;
	//页面展示数据
	private List<T> pageData = new ArrayList<T>();
	
	public Pages() {

	}

	public int getTotalPages() {
		return totalPages;
	}

	public void setTotalPages(int totalPages) {
		this.totalPages = totalPages;
	}

	public int getIndexPage() {
		return indexPage;
	}

	public void setIndexPage(int indexPage) {
		this.indexPage = indexPage;
	}

	public int getTotalData() {
		return totalData;
	}

	public void setTotalData(int totalData) {
		this.totalData = totalData;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public List<T> getPageData() {
		return pageData;
	}

	public void setPageData(List<T> pageData) {
		this.pageData = pageData;
	}

	@Override
	public String toString() {
		return "Pages [totalPages=" + totalPages + ", indexPage=" + indexPage + ", totalData=" + totalData
				+ ", pageSize=" + pageSize + ", pageData=" + pageData + "]";
	}
	
	
}
